<?php
	class loaigiaodichbs
	{
		public $MaLoaiGiaoDich = 0;
		public $TenLoaiGiaoDich = "";
		
		public function Them()
		{
			$db = new loaigiaodichdb();
			return $db->Them($this->MaLoaiGiaoDich, 
							 $this->TenLoaiGiaoDich);
		}
		
		public function CapNhat()
		{
			$db = new loaigiaodichdb();
			return $db->CapNhat($this->MaLoaiGiaoDich,
							    $this->TenLoaiGiaoDich);
		}
		
		public function TonTaiTrongKeKhaiGiaoDich()
		{
			$db = new loaigiaodichdb();
			return $db->TonTaiTrongKeKhaiGiaoDich($this->MaLoaiGiaoDich);
		}
		
		public function Xoa()
		{
			$db = new loaigiaodichdb();
			return $db->Xoa($this->MaLoaiGiaoDich);
		}
		
		public function XoaTatCa()
		{
			$db = new loaigiaodichdb();
			return $db->XoaTatCa();
		}
		
		public function LayDanhSach()
		{
			$db = new loaigiaodichdb();
			return $db->LayDanhSach($this->MaLoaiGiaoDich,
									$this->TenLoaiGiaoDich);
		}
	}
?>